/*
 * Copyright (c) 2022 Kirky
 * Licensed under the Open Software Licence, Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://opensource.org/licenses/osl-3.0.php
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lingeringdream.luciole.model.entity;

import com.zhihu.matisse.utils.L;
import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Column;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;

/**
 * 成就表
 *
 * @author Kirky
 * @version 1.0
 * @date 2022/4/29
 */
@Entity(tableName = "achievement")
public class Achievement extends OrmObject {

    @PrimaryKey(autoGenerate = true)
    private Integer id;

    /**成就编号*/
    @Column(name = "achievement_id", notNull = true, unique = true, index = true)
    private Long achievementId;

    /**成就名称*/
    @Column(name = "name", notNull = true)
    private String name;

    /**成就描述*/
    @Column(name = "description", notNull = true)
    private String description;

    /**获取条件*/
    @Column(name = "condition", notNull = true)
    private String condition;

    /**成就图标*/
    @Column(name = "icon", notNull = true)
    private String icon;

    /**成就类型*/
    @Column(name = "type", notNull = true)
    private Integer type;

    /**获取时间*/
    @Column(name = "get_time", notNull = true)
    private Long getTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getAchievementId() {
        return achievementId;
    }

    public void setAchievementId(Long achievementId) {
        this.achievementId = achievementId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getGetTime() {
        return getTime;
    }

    public void setGetTime(Long getTime) {
        this.getTime = getTime;
    }
}
